/**
 * Created by Administrator on 2017/5/25.
 */
$(function(){
    //普通登录和手机动态密码登录点击的效果
$(".enter_general").click(function(){
    $(".general").css("display","block");
    $(".phone").css("display","none");
    $(".enter_general").css("border-bottom","1px solid #33cb98").siblings().css("border-bottom","1px solid #ddd");
})
    $(".enter_phone").click(function(){
        $(".phone").css("display","block");
        $(".general").css("display","none");
        $(".enter_phone").css("border-bottom","1px solid #33cb98").siblings().css("border-bottom","1px solid #ddd")
    })
    //cookie


    if($("#checkbox").prop("checked") == true){
        var password = $("#password").val();
        $.cookie("passWord",password,{"expires":10,"path":"/"});
    }else{
        $.cookie("passWord","");
    }
    if($.cookie("passWord") != ""){
        $("#password").val($.cookie("passWord"));
    }
})